
var isDebug = true;
var debug = function(val) {
	if (isDebug) {
		if (window.console !== undefined) {
			window.console.log(["[", new Date().toLocaleString(), "] ", val].join(""));
		}
	}
};

var isFunction = function(f) {
	return typeof f === "function";
};

var isArray = function(array) {
	return array instanceof Array;
};

// @static
var execute = function(option) {
	var callbackSuccess = function() {};
	var callbackError = function() {};
	if (option !== undefined && option instanceof Object) {
		callbackSuccess = isFunction(option.success) ? option.success :callbackSuccess;
		callbackError = isFunction(option.error) ? option.error : callbackError;
	}
	
	$.ajax({
			"url" : "test/data.json?" + new Date().getUTCDate(),
			"type" : "post",
			"dataType" : "json",
			"contentType" : "application/json",
			"cache" : false,
			"data" : {},
			"success" : callbackSuccess,
			"error" : callbackError
	});
};

